/**
 * 
 */
package org.t2.backstage.module.player.model;

import org.banish.sql.core.annotation.Column;
import org.banish.sql.core.annotation.Id;
import org.banish.sql.core.annotation.Index;
import org.banish.sql.core.annotation.Table;
import org.banish.sql.core.annotation.Id.Strategy;
import org.banish.sql.core.annotation.enuma.IndexType;
import org.banish.sql.core.entity.AbstractEntity;
import org.gaming.service.repository.annotation.NoCache;
import org.springframework.stereotype.Repository;

/**
 * 
 */
@Repository
@NoCache
@Table(comment = "付费留存表", dbAlias = "backdata", indexs = {
		@Index(fields = { "channelId", "serverUid", "firstDate", "dayCount" }, type = IndexType.UNIQUE) })
public class FirstPayRemain extends AbstractEntity  {
	@Id(strategy = Strategy.AUTO)
	@Column(comment = "数据ID")
	private long id;
	@Column(comment = "渠道ID", readonly = true)
	private long channelId;
	@Column(comment = "服务器唯一ID", readonly = true)
	private long serverUid;
	@Column(comment = "首次付费日期，格式：yyyyMMdd", readonly = true)
	private int firstDate;
	@Column(comment = "距离创号时间的天数", readonly = true)
	private int dayCount;
	@Column(comment = "创号玩家数量")
	private int playerCount;
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public long getChannelId() {
		return channelId;
	}
	public void setChannelId(long channelId) {
		this.channelId = channelId;
	}
	public long getServerUid() {
		return serverUid;
	}
	public void setServerUid(long serverUid) {
		this.serverUid = serverUid;
	}
	public int getFirstDate() {
		return firstDate;
	}
	public void setFirstDate(int firstDate) {
		this.firstDate = firstDate;
	}
	public int getDayCount() {
		return dayCount;
	}
	public void setDayCount(int dayCount) {
		this.dayCount = dayCount;
	}
	public int getPlayerCount() {
		return playerCount;
	}
	public void setPlayerCount(int playerCount) {
		this.playerCount = playerCount;
	}
}
